package com.liushuo.util;

public class ThreadLocalUtil {
    private static final ThreadLocal<String> userId = new ThreadLocal<>();

    public static String getUserId() {
        return userId.get();
    }

    public static void setUserId(String userId) {
        ThreadLocalUtil.userId.set(userId);
    }

    public static void removeUserId() {
        userId.remove();
    }
}
